package com.testdemo.springboot_demo.service;


import com.testdemo.springboot_demo.pojo.User;
import com.testdemo.springboot_demo.pojo.dto.UserDTO;
import org.springframework.stereotype.Service;

@Service
public interface InterfaceUserService {
    /*
    *插入用户
    * @param user
     */
    User add(UserDTO user);

    /*
    *根据id查询用户
    * @param userId
     */
    User getUser(Integer userId);


    /*
    *修改用户
    * @param user
     */
    User edit(Integer userId, UserDTO user);

    /*
    *删除用户
    * @param userId
     */
    void delete(Integer userId);
}
